//
//  UITextField+Extension.h
//  CoachAssistant
//
//  Created by XCY–hqF on 16/5/23.
//  Copyright © 2016年 XCY. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UITextField (Extension)

//当前状态是否是高亮状态
- (BOOL)textFieldPosition;

/**
 * 限制最大的长度
 */
//- (void)textFieldMaxLength:(NSInteger)maxLength maxBlock:(void (^)())maxBlock;

//限制最大的长度
/*
 **
 **
 */
- (void)textFieldMaxLength:(NSInteger)maxLength maxBlock:(void (^)())maxBlock completeBlock:(void (^)())completeBlock;

//手机号码3-4-4
- (BOOL)textFieldPhone344FormatInRange:(NSRange)range replacementString:(NSString *)string;

//获取选中的光标
- (NSRange)selectedRange;

//设置选中的光标
- (void)setSelectedRange:(NSRange)range;

@end
